home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / telecomm / sticpsrc.lzh / SOURCE.ARC / FILES.C < prev    next >
C/C++ Source or Header  |  1990-10-06  |  6KB  |  139 lines

  1. /* System-dependent definitions of various files, spool directories, etc */
  2.  
  3. #include "global.h"
  4.  
  5. #if    (defined(LATTICE) || defined(MSC) || defined(__TURBOC__) || defined(MAC) || defined(ATARI_ST))
  6. /* These compilers require special open modes when reading binary files
  7.  *
  8.  * "The single most brilliant design decision in all of UNIX was the
  9.  * choice of a SINGLE character as the end-of-line indicator" -- M. O'Dell
  10.  *
  11.  * "Whoever picked the end-of-line conventions for MS-DOS and the Macintosh
  12.  * should be shot!" -- P. Karn's corollary to O'Dells' declaratiti
  13.  *
  14.  * Index definitions for this array are in global.h
  15.  */
  16. char *binmode[] = {
  17.     "rb",    /* Read binary */
  18.     "wb",    /* Write binary */
  19.     "ab"    /* Append binary */
  20. };
  21. #else
  22. /* fopen modes for binary files under Aztec -- same as UNIX */
  23. char *binmode[] = {
  24.     "r",    /* Read */
  25.     "w",    /* Write */
  26.     "a"    /* Append */
  27. };
  28. #endif
  29.  
  30. /* don't move the Atari files def, there is a bug in the compiler that causes */
  31. /* trouble with the "mailqueue" definition of other systems (comment sequence) */
  32. /* the a: in filenames below is fixed at program startup - don't remove it! */
  33. #ifdef    ATARI_ST
  34. char startup[]     = "a:\\net\\autoexec.net";    /* Initialization file */
  35. char on_exit[]     = "a:\\net\\onexit.net";    /* Terminatitn file */
  36. char userfile[]     = "a:\\net\\ftpusers";        /* Authorized FTP users and passwords */
  37. char hosts[]     = "a:\\net\\hosts.net";    /* Network host table */
  38. char fingersuf[] = ".txt";            /* Finger file suffix */
  39. char fingerpath[]= "a:\\net\\finger\\";        /* Finger file path */
  40. char mailspool[] = "a:\\net\\mail\\";        /* Incoming mail */
  41. char mailqdir[]     = "a:\\net\\mqueue\\";        /* Outgoing mail spool */
  42. char mailsuf[]     = ".txt";            /* Mail file suffix */
  43. char mailqueue[] = "*.wrk";            /* Outgoing mail work files */
  44. char routeqdir[] = "a:\\net\\rqueue\\";        /* queue for router */
  45. char alias[]     = "a:\\net\\alias";        /* the alias file */
  46. char tmpdir[]     = "a:\\net\\tmp";        /* temp files directory */
  47. char bm_rc[]     = "a:\\net\\bm.rc";        /* BM reconfiguratitn file */
  48. #endif
  49.  
  50. #ifdef    MSDOS
  51. #ifdef    ROOTDIR
  52. char startup[]     = "/autoexec.net";        /* Initializatitn file */
  53. char on_exit[]     = "/onexit.net";        /* Terminatitn file */
  54. char userfile[]     = "/ftpusers";            /* Authorized FTP users and passwords */
  55. char hosts[]     = "/hosts.net";        /* Network host table */
  56. char fingersuf[] = ".txt";            /* Finger file suffix */
  57. char fingerpath[]= "/finger/";            /* Finger file path */
  58. char mailspool[] = "/spool/mail/";        /* Incoming mail */
  59. char mailqdir[]     = "/spool/mqueue/";        /* Outgoing mail spool */
  60. char mailsuf[]     = ".txt";            /* Mail file suffix */
  61. char mailqueue[] = "*.wrk";            /* Outgoing mail work files */
  62. char routeqdir[] = "/spool/rqueue/";        /* queue for router */
  63. char alias[]     = "/alias";            /* the alias file */
  64. char bm_rc[]     = "/bm.rc";            /* BM reconfiguration file */
  65. #else
  66. char startup[]     = "/net/autoexec.net";        /* Initialization file */
  67. char on_exit[]     = "/net/onexit.net";        /* Termination file */
  68. char userfile[]     = "/net/ftpusers";        /* Authorized FTP users and passwords */
  69. char hosts[]     = "/net/hosts.net";        /* Network host table */
  70. char fingersuf[] = ".txt";            /* Finger file suffix */
  71. char fingerpath[]= "/net/finger/";        /* Finger file path */
  72. char mailspool[] = "/spool/mail/";        /* Incoming mail */
  73. char mailqdir[]     = "/spool/mqueue/";        /* Outgoing mail spool */
  74. char mailsuf[]     = ".txt";            /* Mail file suffix */
  75. char mailqueue[] = "*.wrk";            /* Outgoing mail work files */
  76. char routeqdir[] = "/spool/rqueue/";        /* queue for router */
  77. char alias[]     = "/net/alias";        /* the alias file */
  78. char bm_rc[]     = "/net/bm.rc";        /* BM reconfiguratitn file */
  79. #endif
  80. #endif
  81.  
  82. #ifdef    CPM
  83. char startup[]     = "a:autoexec.net";        /* Initialization file */
  84. char on_exit[]     = "a:onexit.net";        /* Termination file */
  85. char userfile[]     = "a:ftpusers";        /* Authorized FTP users and passwords */
  86. char hosts[]     = "a:hosts.net";        /* Network host table */
  87. char mailspool[] = "a:";            /* Incoming mail */
  88. char mailqdir[]     = "a:";            /* Outgoing mail spool */
  89. char mailsuf[]     = ".txt";            /* Mail file suffix */
  90. char mailqueue[] = "a:*.wrk";            /* Outgoing mail work files */
  91. char routeqdir[] = "a:";            /* queue for router */
  92. char alias[]     = "a:alias";            /* the alias file */
  93. char tmpdir[]     = "a:";            /* temp files directory */
  94. char bm_rc[]     = "a:bm.rc";            /* BM reconfiguration file */
  95. #endif
  96.  
  97. #ifdef    UNIX
  98. char startup[] = "autoexec.net";        /* Initializatitn file */
  99. char on_exit[]     = "onexit.net";        /* Termination file */
  100. char userfile[] = "ftpusers";            /* Authorized FTP users and passwords */
  101. char hosts[] = "hosts.net";            /* Network host table */
  102. char fingersuf[] = "";                /* Finger file suffix */
  103. char fingerpath[]= "finger/";            /* Finger file path */
  104. char mailspool[] = "/usr/spool/mail/";        /* Incoming mail */
  105. char mailqdir[] = "/usr/spool/mqueue/";        /* Outgoing mail spool */
  106. char mailsuf[] = "";                /* Mail file suffix */
  107. char mailqueue[] = "*.wrk";            /* Outgoing mail work files */
  108. char routeqdir[] = "/usr/spool/rqueue/";    /* queue for router */
  109. char alias[] = "alias";                /* the alias file */
  110. #endif
  111.  
  112. #ifdef    AMIGA
  113. char startup[] = "TCPIP:net.start";
  114. char on_exit[] = "TCPIP:net.onexit";        /* Termination file */
  115. char userfile[] = "TCPIP:ftpusers";
  116. char hosts[] = "TCPIP:hosts.net";
  117. char fingersuf[] = ".txt";            /* Finger file suffix */
  118. char fingerpath[]= "TCPIP:finger/";        /* Finger file path */
  119. char mailspool[] = "TCPIP:spool/mail/";
  120. char mailqdir[] = "TCPIP:spool/mqueue/";
  121. char mailsuf[]     = ".txt";            /* Mail file suffix */
  122. char mailqueue[] = "*.wrk";            /* Outgoing mail work files */
  123. char routeqdir[] = "TCPIP:spool/rqueue/";    /* queue for router */
  124. char alias[] = "TCPIP:alias";            /* the alias file */
  125. #endif
  126.  
  127. #ifdef    MAC
  128. char startup[] = "Hard Disk:net.start";
  129. char userfile[] = "Hard Disk:ftpusers";
  130. char hosts[] = "Hard Disk:hosts.net";
  131. char mailspool[] = "Hard Disk:spool:mail:";
  132. char mailqdir[] = "Hard Disk:spool:mqueue:";
  133. char mailsuf[]     = ".txt";            /* Mail file suffix */
  134. char mailqueue[] = "*.wrk";            /* Outgoing mail work files */
  135. char routeqdir[] = "Hard Disk:spool:rqueue:";    /* queue for router */
  136. char alias[] = "Hard Disk:alias";        /* the alias file */
  137. #endif
  138.  
  139.